<?php
$this->renderPartial('application.modules.member.views.main.info');
$form = $this->beginWidget('CActiveForm', array(
            'id' => 'withdraw-ewallet-form',
            'enableClientValidation' => true,
            'clientOptions' => array(
                'validateOnSubmit' => true,
            ),
        ));
//echo $form->errorSummary($model);
?>
<br />
<h1>Withdraw E-wallet</h1>
<div class="add">
    <?php echo Yii::app()->user->getFlash('message'); ?>
    <?php //echo $form->error($model, 'kode_unik', array('style' => 'color:#a42a27;')); ?>
    <table cellpadding="0" cellspacing="0" border="0">
        <tr class="title">
            <th colspan="2" style="text-align:left;"><strong>Info Transfer</strong></th>
        </tr>
        <tr>
            <th width="100" valign="top">Saldo E-wallet</th>
            <td>
                <?php echo number_format($saldo_ewallet); ?>
            </td>

        </tr>
        <tr>
            <th width="100" valign="top">Jumlah ditransfer</th>
            <td><?php echo $form->textField($model, 'jumlah_ditransfer'); ?>  <?php echo $form->error($model, 'jumlah_ditransfer', array('style' => 'color:#a42a27;')); ?></td>
        </tr>
<!--        <tr class="title">
            <th colspan="2" style="text-align:left;"><strong>VALIDASI KODE UNIK</strong></th>
        </tr>
        <tr>
            <th>Kode Unik</th>
            <td><div style="float:left; padding-right:10px;"><?php echo $form->textField($model, 'kode_unik'); ?></div><div style="float:left; padding-top:1px;"><?php $this->widget('CCaptcha'); ?></div><div style="clear:both;"></div></td>
        </tr>-->
        <tr class="title">
            <th colspan="2" style="text-align:left;"><strong>VALIDASI PIN</strong></th>
        </tr>
        <tr>
            <th>PIN</th>
            <td><?php echo $form->textField($model, 'serial_pin'); ?> <?php echo $form->error($model, 'serial_pin', array('style' => 'color:#a42a27;')); ?> </td>
        </tr>
        <tr>
            <th>&nbsp;</th>
            <td><input type="submit" name="submit" value="Proses" class="button"></td>
        </tr>
    </table>
</div>
<?php
$this->endWidget();
?>